package srzy.driver

import srzy.socket.DCCMsgActor

object Start3 {

  def deal = {
    //    DccMsgActor.start
    val x = xml.XML.loadString("""<command name="CCR">
        <avp name="Session-Id" value="ccg_chb.chinaunicom.com;20140902"></avp>
        <avp name="Origin-Host" value="sm-all-test"></avp>
        <avp name="Origin-Realm" value="chinaunicom.com"></avp>
        <avp name="Destination-Host" value="sp.chinaunicom.com"></avp>
        <avp name="Destination-Realm" value="chinaunicom.com"></avp>
        <avp name="Auth-Application-Id" value="4"></avp>
        <avp name="Service-Context-Id" value="ccg@cu.com"></avp>
        <avp name="CC-Request-Type" value="1"></avp>
        <avp name="CC-Request-Number" value="0"></avp>
        <avp name="Origin-State-Id" value="15"></avp>
        <avp name="Event-Timestamp" value="3618177000"></avp><!--20140430001020-->
        <avp name="Subscription-Id">
          <avp name="Subscription-Id-Type" value="0"></avp>
          <avp name="Subscription-Id-Data" value="8613200007777"></avp>
        </avp>
        <avp name="Subscription-Id">
          <avp name="Subscription-Id-Type" value="1"></avp>
          <avp name="Subscription-Id-Data" value="460013840602104"></avp>
        </avp>
        <avp name="User-Equipment-Info">
          <avp name="User-Equipment-Info-Type" value="0"></avp>
          <avp name="User-Equipment-Info-Value" value="aaa"></avp>
        </avp>
        <avp name="Multiple-Services-Credit-Control">
          <avp name="CC-Total-Octets" value="0"></avp>
          <avp name="CC-Time" value="120"></avp>
          <avp name="Rating-Group" value="160031"></avp>
        </avp>
        <avp name="Service-Information">
          <avp name="PS-Information">
            <avp name="3GPP-PDP-Type" value="0"></avp>
            <avp name="PDP-Address" value="0x0001A15CC3"></avp>
            <avp name="3GPP-User-Location-Info" value="100469043219136533"></avp>
            <avp name="Called-Station-Id" value="3GWAP"></avp>
            <avp name="GGSN-Address" value="0x0001DCCE8D41"></avp>
            <avp name="SGSN-Address" value="0x0001DCCE8D41"></avp>
            <avp name="3GPP-IMSI-MCC-MNC" value="460013"></avp>
            <avp name="3GPP-GGSN-MCC-MNC" value="46001"></avp>
            <avp name="3GPP-Selection-Mode" value="0"></avp>
            <avp name="3GPP-MS-TimeZone" value="#"></avp>
            <avp name="3GPP-RAT-Type" value="0x0001"></avp>
            <!--avp name="SGSN-PLMN-Id" value="46001"></avp-->
            <avp name="PDP-Context-Type" value="0"></avp>
            <avp name="3GPP-NSAPI" value="5"></avp>
            <avp name="3GPP-Charging-Characteristics" value="0400"></avp>
            <avp name="3GPP-Charging-Id" value="-1467184619"></avp>
          </avp>
        </avp>
      </command>""")
    //    println((DccMsgActor !! x).apply)
  }

  def main(args: Array[String]): Unit = {
    deal
  }
}